import { Component } from 'solid-js'
import { Weeks } from '../../content'
import PostItem from '../../components/PostItem'

const Page: Component = (props: any) => {
  return (
    <div style="display:flex;flex-wrap:wrap;justify-content:space-between;background:#000;padding:0 20px 10px;box-sizing:border-box;color:#fff;">
      {
          Weeks.map((p, n) => <PostItem cid={p.cid} pid={props.pids[n]} title={p.title} pic={p.pic} />)
        }
    </div>
  )
}

export { Page }
